package demo6;
/*
* 单例模式演示
* */
public class Singleton {
    private static Singleton instance = new Singleton();

    private Singleton() {
    }
    public static Singleton getInstance(){
        return instance;
    }
}
